package com.coocaa.app.support.net.monitor;

import com.coocaa.app.support.net.HttpServiceManager;

import retrofit2.Call;

public class DefaultMonitorHttpServiceManager extends HttpServiceManager<DefaultMonitorMethod> implements DefaultMonitorMethod {
    public DefaultMonitorHttpServiceManager(HttpServiceManagerConfig config) {
        super("cl-dl.cc0808.com", config);
    }

    @Override
    protected Class<DefaultMonitorMethod> getServiceClazz() {
        return DefaultMonitorMethod.class;
    }

    @Override
    public Call<String> submit(String method, String params, int httpCode, int errCode, String errMsg, long duration) {
        if (params == null)
            params = "";
        if (errMsg == null)
            errMsg = "";
        return getHttp().submit(method, params, httpCode, errCode, errMsg, duration);
    }
}
